home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Aug-Sep 88 / WhenNewMethod?⁄07.21.88⁄D1220 < prev    next >
Encoding:
Text File  |  1991-03-06  |  857 b   |  42 lines  |  [TEXT/GEOL]

  1. Item    9107776                         21-July-88        16:05
  2.  
  3. From:   D1220                           VarLite, Dev, Andy Meldrum
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    What's the Difference Between.
  8.  
  9. I'm a bit confused on what criteria I should use to decide when to create new
  10. method & when I should override an existing method...
  11.  
  12. For example.. what exactly is the difference between..
  13.  
  14. MyObject = OBJECT (TObject);
  15. PROCEDURE MyObject.IMyObject;
  16.  
  17. IMyObject
  18. BEGIN
  19.     IObject;
  20.     My Init Code...;
  21. END;
  22.  
  23. &
  24.  
  25. MyObject = OBJECT (TObject);
  26.  
  27. PROCEDURE MyObject.IMyObject ; OVERRIDE;
  28.  
  29. BEGIN
  30.     INHERITED IObject;
  31.     My Init Code...;
  32. END;
  33.  
  34. They look about the same to me although I'm aware that the method IObject is
  35. available to call directly in the first approach but that seems about it..
  36.  
  37. Yours puzzled..
  38. Andy .
  39.  
  40.  
  41.  
  42.